#include <time.h>
#include <stdlib.h>

#include "hasard.h"



void init_hasard(void)
{
    srand(time(NULL));
}



char test_proba(const unsigned int proba)
{
    return (rand() % 1000 < proba);
}
